package com.clps.rulesregulations.controller;

import com.clps.rulesregulations.domain.User;
import com.clps.rulesregulations.util.Const;
import com.clps.rulesregulations.util.ResultView;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 首页控制类
 *
 * @author zhangchao
 * @date 2018-10-08
 */
@Controller
public class IndexController {
    /**
     * 进入首页
     *
     * @return
     */
//    @GetMapping("/")
    public String index() {
        return "index";
    }

//    @GetMapping("/login")
    public String login() {
        return "login";
    }

    @GetMapping("/index/moreeditfile")
    public String moreeditfile() {
        return "index/moreeditfile";
    }

    @GetMapping("/index/morehotsearch")
    public String morehotsearch() {
        return "index/morehotsearch";
    }

    @GetMapping("/updatepassword")
    public String updatepassword() {
        return "index/updatepassword";
    }

    @GetMapping("/accessfilelog/{id}")
    public String accessfilelog(@PathVariable Integer id) {
        return "index/accessfilelog";
    }

    @GetMapping("/regulation/schedule/{id}")
    public String toSchedule(@PathVariable Integer id) {
        return "regulation/schedule";
    }
}
